<template>
    <view class="mt70 pd">
        <view class="cf fz40">
        	{{oname}}
        </view>
		<view class="mt80">
			<navigator :url="'MembersDetails?oid='+sd.oid+'&id='+sd.id" class="pt30 pm30  row kjjhnmkxert"  v-for="(sd,idx) in list" :key="idx">
				<image :src="sd.avatar" class="yj usericonhgsdr" mode=""></image>
				<view class="col pl50 fz32 cf">
					{{sd.alias}} <text class="z9 ml20 fz24">{{sd.job_title}}</text>
				</view>
			</navigator>
		</view>
		
    </view>
</template>
<script>
    export default {
        data() {
            return {
				oid:'',
				list:{},
				oname:''
			}
        },
        components: {},
        methods: {
			async dengljse() {
				console.log('/api/organization/'+this.oid+'/users')
				let values=await this.get('/api/organization/'+this.oid+'/users')
				console.log(values)
				this.list = values.data
			}
		},
		onNavigationBarButtonTap(e) {
			console.log(e)
			if(e.index==1){
				
			}
			uni.navigateTo({
				url:'EditingGroup'
			})
		},
		onLoad(options){
			this.oid = options.oid
			this.oname = options.oname
			this.dengljse()
		},
		onShow(){
			
		},
        mounted() {}
    }

</script>
<style  scoped>
    .usericonhgsdr{
		width: 100upx;
		height: 100upx;
	}
	.kjjhnmkxert{
		line-height: 100upx;
	}
</style>
